import { create } from 'zustand'
import { subscribeWithSelector } from "zustand/middleware";

export default create(subscribeWithSelector((set) => {
  return {
    // 项目运行的平台
    env: undefined,

    updateENV: val => {
      set(state => {
        return {
          env: val
        }
      })
    },

    shareVisible: false,

    updateShareVisible: val => {
      set(state => {
        return {
          shareVisible: val
        }
      })
    }
  }
}))